package cn.xiaozhi0802.dao;

import cn.xiaozhi0802.bean.User;
import cn.xiaozhi0802.bean.Users;

import java.io.IOException;
import java.util.List;

public interface UserMapper {
    //4.分页
    //public List<User> findAll() throws IOException;
    //3. typeHandlers标签
    public void save(User user);
    //2.动态sql代码
    public List<User> findByCondition(User user);
    public List<User> findByIds(List<Integer> ids);
    //1.代理开发方式代码
    public List<User> findAll() throws IOException;
    public List<User> findById(int id);

    /*
        用户的持久层方法
     */
    //List<Users> findAll();
}
